package com.rf.richfitwheel.workflow.controller;

import com.rf.richfitwheel.common.utils.R;
import com.rf.richfitwheel.workflow.model.WfStationProcessOrder;
import com.rf.richfitwheel.workflow.service.WfStationProcessOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 岗位流程顺序
 *
 * @author zhanglu
 * @email zhanglu2@cnpc.com.cn
 * @date 2021-07-22 13:57:21
 */
@RestController
@RequestMapping("/wfstationprocessorder")
public class WfStationProcessOrderController {
    @Autowired
    private WfStationProcessOrderService wfStationProcessOrderService;

    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") String id) {
        WfStationProcessOrder wfStationProcessOrder = wfStationProcessOrderService.selectById(id);

        return R.ok().put("wfStationProcessOrder", wfStationProcessOrder);
    }

}
